// pages/profile/index.js
Page({

  /**
   * 页面的初始数据
   */
  data: {
    nickName: "",
    avatarUrl: ""
  },
  getNickName(e) {
    // console.log(e);
    this.setData({
      nickName: e.detail.value
    }, () => {
      wx.setStorageSync("nickName", e.detail.value);
    })
  },
  getAvatar(e) {
    // console.log(e);
    this.setData({
      avatarUrl: e.detail.avatarUrl,
    }, () => {
      wx.setStorageSync('avatarUrl', e.detail.avatarUrl)
    });
  },


})